<?PHP
if (!session_start()) { session_start(); };
/*if (!isset($_SESSION['lgnapproved'])) {
	die(header('Location: login.php'));
}*/

include("functions.php");
include("cnnxn.php");
connect();

if (isset($_GET['rid'])) {

$SQLdel='DELETE FROM Ratings WHERE RatingID='.$_GET['rid'].';';
//print $SQLdel;
$sendit_del=mysqli_query($db,$SQLdel) or die(mysqli_error($db));
die(header("Location: Ratings_viewall.php"));
}
?>